package com.fr.data.impl;

import com.fr.base.core.ComparatorUtils;
import com.fr.data.AbstractTableData;

public class ArrayTableData extends AbstractTableData
{
  private String[] columnNames;
  private Object[][] rowData;

  public ArrayTableData(String[] paramArrayOfString, Object[][] paramArrayOfObject)
  {
    this.columnNames = paramArrayOfString;
    this.rowData = paramArrayOfObject;
  }

  public int getColumnCount()
  {
    return this.columnNames.length;
  }

  public String getColumnName(int paramInt)
  {
    return this.columnNames[paramInt];
  }

  public int getRowCount()
  {
    return this.rowData.length;
  }

  public Object getValueAt(int paramInt1, int paramInt2)
  {
    return this.rowData[paramInt1][paramInt2];
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof ArrayTableData))
      return false;
    return ((super.equals(paramObject)) && (ComparatorUtils.equals(this.columnNames, ((ArrayTableData)paramObject).columnNames)) && (ComparatorUtils.equals(this.rowData, ((ArrayTableData)paramObject).rowData)));
  }
}